//
//  ReferCostumCollectionViewCell.m
//  MMLOOK
//
//  Created by dllo on 15/8/27.
//  Copyright (c) 2015年 武俊娥. All rights reserved.
//

#import "ReferCostumCollectionViewCell.h"
#import "UIImageView+WebCache.h"
#import "ReferModel.h"


@interface ReferCostumCollectionViewCell ()



@end

@implementation ReferCostumCollectionViewCell

- (void)dealloc
{
    [_imageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        
        [self creatSubView];
    }
    return self;
}

- (void)creatSubView
{
    self.imageView = [[[UIImageView alloc] initWithFrame:CGRectMake(5 * OffWidth, 5 * OffHeight, self.frame.size.width - 10*OffWidth, self.frame.size.height - 10*OffHeight)] autorelease];
    
    [self.contentView addSubview:_imageView];
}

- (void)sendmodel: (ReferModel *)model
{
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.cover_path] placeholderImage:[UIImage imageNamed:@"home.jpg"]];
}

@end
